package com.onlyphoto.onlymall.bean.response

import android.text.TextUtils
import com.onlyphoto.onlymall.base.BaseEntity

data class TabBean(
    var key: String,  //0:全部订单 1:待付款 2:待发货 3:待收货 5:完成 (已确认收货) 9: 退货订单
    var value: String
) : BaseEntity() {
    override fun equals(other: Any?): Boolean {
        if (other == null) {
            return false
        }
        if (other.javaClass != this::javaClass) {
            return false
        }
        val a = other as TabBean?
        return TextUtils.equals(a!!.key, this.key) && TextUtils.equals(a.value, this.value)
    }

    override fun hashCode(): Int {
        var result = key.hashCode()
        result = 31 * result + value.hashCode()
        return result
    }
}